import request from "@/plugins/axios/index";
import type { ChatType } from "./types";

// chat对话内容
const chatConversationApi = (data: ChatType): Promise<IResponse<string>> => {
  return request.post({ url: "/chat/chat", data });
};
//
// const chatCancelRequest = () => {
//   return request.cancelRequest("/v1/chat/completions");
// };

export { chatConversationApi };

// get请求例子
// export const loginOutApi = (): Promise<IResponse> => {
//   return request.get({ url: '/user/loginOut' })
// }
